//
//  ViewController.m
//  27-Block练习-播放按钮
//
//  Created by dllo on 16/8/19.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "ViewController.h"
#import "PlayView.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet PlayView *playView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"1"]];
    [self.playView play:^(Button_image *play) {
        NSLog(@"播放");
    } pause:^(Button_image *pause) {
        NSLog(@"暂停");
    }];
    
    [self.playView last:^(Button_image *last) {
        NSLog(@"上一首");
    } next:^(Button_image *next) {
        NSLog(@"下一首");
    }];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
